import yaml

def load_data(action):
    with open("data.yml",encoding='utf-8') as f:
        data = yaml.safe_load(f)
    return data.get(action)

if __name__ == '__main__':
    print(load_data("add"))